<template>
  <div class="item_main" v-html="html"></div>
</template>

<script>
import axios from 'axios';
export default {
    name:"Item",
    data () {
        return {
            data:{},
            html:""
        }
    },
    created (){
        this.data = this.$route.params;
        console.log(this.data);
        axios.get(`asgard/movie/${this.data.id}?channelId=4&cityId=30`).then(data=>{
            this.html = data.data;
        }).catch(error=>{
            console.log("请求异常",error);
        })
    }
}
</script>

<style>
    .item_main{
        flex: 1;
    }
</style>